// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
Vue.config.productionTip = false
//引入element
//引入element
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import '../static/element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

import '../static/css/base.css'

import '../static/font/iconfont.css'

import '../static/font_2/iconfont.css'

import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'

Viewer.setDefaults({
  "inline": false,
  "button": true,
  "navbar": false,
  "title": false,
  "toolbar": true,
  "tooltip": true,
  "movable": true,
  "zoomable": true,
  "rotatable": true,
  "scalable": true,
  "transition": true,
  "fullscreen": true,
  "keyboard": false,
  "url": "data-source"

});
Vue.use(Viewer);

//Moment:引入moment
import Moment from 'moment';

Vue.prototype.$moment = Moment;

Vue.filter('cDate', function (value) {
  return Moment(value).format('YYYY-MM-DD');
});

Vue.filter('convertDate', function (value) {
  return Moment(value).format('YYYY-MM-DD HH:mm');
});
//引入jq
import $ from 'jquery'

// import BaseMap from './components/Map.vue';
// Vue.component('BaseMap', BaseMap);

import slideshow from './components/slideshow'
Vue.component('slideshow', slideshow)


//引入echart
import echarts from 'echarts'
Vue.prototype.$echarts = echarts

//Axios:引入axios
import Axios from 'axios';
//Axios:挂载原型
Vue.prototype.$axios = Axios;


import * as d3 from "d3";
Vue.prototype.$d3 = d3;
window.d3 = d3;

import automatic from './components/automatic.vue'
Vue.component('Automatic', automatic)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {
    App
  },
  template: '<App/>'
})
